<?php //echo CHtml::beginForm(); ?>
	<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo CHtml::errorSummary($login); ?>
	<?php if(Yii::app()->user->hasFlash('error')):?>
    	<div class="info" style="color: red;">
        	<?php echo Yii::app()->user->getFlash('error'); ?>
    	</div>
	<?php endif; ?>
	<div id = "fromLogin">
		 <div class="row">
                        <?php echo CHtml::activeLabel( $login,'username'); ?>
                        <?php echo CHtml::activeTextField( $login,'username'); ?>
                        <?php echo CHtml::error( $login,'username'); ?>
                </div>

	
                <div class="row">
                        <?php echo CHtml::activeLabel( $login,'password'); ?>
                        <?php echo CHtml::activePasswordField( $login,'password'); ?>
                        <?php echo CHtml::error( $login,'password'); ?>
                </div>
                <div class="row">
        
	   <?php ?>
		<?php echo CHtml::activehiddenField($login,'check',array('value'=>$login->check)); ?>
	</div>
	</div>
    <?php //echo CHtml::endForm(); ?>